This release of MacApp requires MPW 3.2 or later and CFront 3.2 or later. It will not work with MPW 3.1. If your computer has enough memory, setting the RAM Cache to 96K or higher will speed up MPW significantly.
Installing
To install MacApp on your system, do the following:
0. Open the MacApp 3.0.1 folder on the CD.
1. Drag the folder named “MacApp 3.0.1 (Hard Disk Ready)” to your hard disk. This folder contains MacApp 3.0.1 with two pre-built libraries: debug and no-debug.
The other folder named “More Libraries” contains several other pre-built MacApp 3.0.1 libraries. To install any of the pre-built libraries, just drag them from the “More Libraries” folder to the “Libraries” folder in the MacApp folder on your own hard disk.
2. Drop the file “UserStartup•MacApp” from your MacApp folder to your MPW folder, and delete the file “MacApp_Folder” from your MPW folder (if present).
3. Launch MPW. UserStartup•MacApp will automatically be executed. You will be asked to find the MacApp folder.
4. Optionally, create a folder to hold your Application source files, Rez input file,
and make file and place it in the MacApp folder. The naming conventions
for your application's files are:
MYourApp.cp/p // The optional Main program
UYourApp.h/p // The optional interface part of your application unit
UYourApp≈.cp/.inc≈.p // The optional include file[s] that contain the
// implementation of the unit.
OR ---------------------
YourApp.cp/p // The Main program. See Nothing.p for an
// example.
AND --------------------
YourApp.r // The optional Rez input file. Default.r will be used
// if you do not supply an input file
YourApp.MAMake // The optional Make file.
If you prefer to use a different naming convention, you will need to create a YourApp.MAMake file.
Building
To build your own non-debug version of the MacApp library:
1. In MPW, set your directory to MacApp library folder:
directory "{MacApp}Libraries"
2. In MPW, type
MABuild -Autobuild
The default build options for MABuild will build you a no-debug library that requires System 7.0.
To build a debug version of the MacApp library:
1. In MPW, set your directory to MacApp library folder:
directory "{MacApp}Libraries"
2. In MPW, type
MABuild -Autobuild -Debug
Please refer to Debugging MacApp Programs later in these release notes for more information concerning debug MacApp applications.
To build a version of the MacApp library suitable for use with SourceBug or SADE:
1. In MPW, set your directory to MacApp library folder:
directory "{MacApp}Libraries"
2. In MPW, type
MABuild -Autobuild -Sym -Names
or optionally:
MABuild -Autobuild -Sym -Names -Debug
to use both the MacApp debugger and SourceBug/SADE.
To build your application:
1. You may need to create a “.MAMake” file. See the MacApp Reference Manual,
or the Calc sample program to learn how.
2. In MPW, set your directory to your Application folder:
directory "{MacApp}MyApp Folder"
3. In MPW, type
MABuild YourApp -NoPasLoad
where YourApp is the name of your application. The -NoPasLoad option is still recommended if your application is Pascal based because of an occasional problem in previous releases of the Pascal compiler and its usage of load dump files. This will build a non-debug version of the application.
To build a debug version type:
MABuild YourApp -Sym -Names
or
MABuild YourApp -Sym -Names -Debug -NoPasLoad
The first time you build an application, Rez will run after the link to create your
application's resources. Rez will not run again unless you change the Rez input file (YourApp.r).